<template>
  <div class="add_channels_wrap">
    <el-button type="text" size="small" @click="pop_show = true">
      自由切分
    </el-button>
    <el-dialog title="切分指定时间段" :visible.sync="pop_show" append-to-body>
      <el-row :gutter="20">
        <el-col :xs="24" :sm="24" :md="24" :lg="12" :xl="12">
          <el-card shadow="hover">
            <vab-player-hls
              :config="config2"
              @player="Player2 = $event"
            ></vab-player-hls>
          </el-card>
        </el-col>
        <el-col :xs="24" :sm="24" :md="24" :lg="12" :xl="12">
          <el-card shadow="hover">
            <h4>初始时间:</h4>
            <el-input placeholder="00:00:00" size="small"></el-input>
            <br />
            <br />
            <h4>结束时间:</h4>
            <el-input placeholder="00:00:00" size="mini"></el-input>
          </el-card>
        </el-col>
      </el-row>
    </el-dialog>
  </div>
</template>

<script>
  import { VabPlayerMp4, VabPlayerHls } from '@/plugins/vabPlayer.js'

  export default {
    name: 'MyUpload',
    components: {
      VabPlayerHls,
    },
    data() {
      return {
        pop_show: false,
        config2: {
          id: 'mse2',
          url: 'https://cdn.jsdelivr.net/gh/chuzhixin/videos@master/video.m3u8',
          volume: 1,
          autoplay: false,
        },
      }
    },
    mounted() {},
    methods: {},
  }
</script>
